<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>订单管理系统</title>

<link href="<c:url value='/jslib/dwz_jui/themes/default/style.css' />" rel="stylesheet" type="text/css" media="screen" />
<link href="<c:url value='/jslib/dwz_jui/themes/css/core.css' />" rel="stylesheet" type="text/css" media="screen" />
<link href="<c:url value='/jslib/dwz_jui/themes/css/print.css' />" rel="stylesheet" type="text/css" media="print" />
<link href="<c:url value='/jslib/dwz_jui/uploadify/css/uploadify.css' />" rel="stylesheet" type="text/css"
	media="screen" />
<!--[if IE]>
<link href="themes/css/ieHack.css" rel="stylesheet" type="text/css" media="screen"/>
<![endif]-->

<!--[if lte IE 9]>
<script src="js/speedup.js" type="text/javascript"></script>
<![endif]-->

<script src="<c:url value='/jslib/dwz_jui/js/jquery-1.7.2.js' />" type="text/javascript"></script>
<script src="<c:url value='/jslib/dwz_jui/js/jquery.cookie.js' />" type="text/javascript"></script>
<script src="<c:url value='/jslib/dwz_jui/js/jquery.validate.js' />" type="text/javascript"></script>
<script src="<c:url value='/jslib/dwz_jui/js/jquery.bgiframe.js' />" type="text/javascript"></script>
<script src="<c:url value='/jslib/dwz_jui/uploadify/scripts/jquery.uploadify.js' />" type="text/javascript"></script>

<!-- svg图表  supports Firefox 3.0+, Safari 3.0+, Chrome 5.0+, Opera 9.5+ and Internet Explorer 6.0+ -->
<script type="text/javascript" src="<c:url value='/jslib/dwz_jui/chart/raphael.js' />"></script>
<script type="text/javascript" src="<c:url value='/jslib/dwz_jui/chart/g.raphael.js' />"></script>
<script type="text/javascript" src="<c:url value='/jslib/dwz_jui/chart/g.bar.js' />"></script>
<script type="text/javascript" src="<c:url value='/jslib/dwz_jui/chart/g.line.js' />"></script>
<script type="text/javascript" src="<c:url value='/jslib/dwz_jui/chart/g.pie.js' />"></script>
<script type="text/javascript" src="<c:url value='/jslib/dwz_jui/chart/g.dot.js' />"></script>

<script src="<c:url value='/jslib/dwz_jui/bin/dwz.min.js" type="text/javascript' />"></script>

<script src="<c:url value='/jslib/dwz_jui/js/dwz.regional.zh.js' />" type="text/javascript"></script>

<script type="text/javascript">
	$(function() {
		DWZ.init("<c:url value='/jslib/dwz_jui/dwz.frag.xml' />", {
			//		loginUrl:"login_dialog.html", loginTitle:"登录",	// 弹出登录对话框
			loginUrl : "<c:url value='/login' />", // 跳到登录页面
			statusCode : {
				ok : 200,
				error : 300,
				timeout : 301
			}, //【可选】
			pageInfo : {
				pageNum : "pageNum",
				numPerPage : "numPerPage",
				orderField : "orderField",
				orderDirection : "orderDirection"
			}, //【可选】
			keys : {
				statusCode : "statusCode",
				message : "message"
			}, //【可选】
			debug : false, // 调试模式 【true|false】
			callback : function() {
				initEnv();
				$("#themeList").theme({
					themeBase : "<c:url value='/jslib/dwz_jui/themes'/>"
				}); // themeBase 相对于index页面的主题base路径
			}
		});
	});
</script>
</head>

<body scroll="no">
	<div id="layout">
		<div id="header">
			<div class="headerNav">
				<a class="logo" href="">标志</a>
				<ul class="nav">
					<li><a>您好，${sessionInfo.realname}，您在使用ip【${sessionInfo.ip}】登录</a></li>
					<li><a target="dialog" width="530" height="200" rel="" mask="true"
						href="<c:url value='/user/showEditCurUserPwd'/>" title="修改密码"><span>修改密码</span></li>
					<li><a href="<c:url value='/user/logout' />">退出</a></li>
				</ul>
				<ul class="themeList" id="themeList">
					<li theme="default"><div class="selected">blue</div></li>
					<li theme="green"><div>green</div></li>
					<li theme="purple"><div>purple</div></li>
					<li theme="silver"><div>silver</div></li>
					<li theme="azure"><div>天蓝</div></li>
				</ul>
			</div>

			<!-- navMenu -->

		</div>

		<div id="leftside">
			<div id="sidebar_s">
				<div class="collapse">
					<div class="toggleCollapse">
						<div></div>
					</div>
				</div>
			</div>
			<div id="sidebar">
				<div class="toggleCollapse">
					<h2>主菜单</h2>
					<div>收缩</div>
				</div>

				<div class="accordion" fillSpace="sidebar">
					<div class="accordionHeader">
						<h2>
							<span>Folder</span>管理面板
						</h2>
					</div>
					<div class="accordionContent">
						<ul class="tree treeFolder">
							<c:if test="${sessionInfo.role == '管理员' || sessionInfo.role == '财务'}">
								<li><a href="<c:url value='/user/showList' />" target="navTab" rel="userList">用户管理</a></li>
							</c:if>
							<c:if test="${sessionInfo.role == '管理员' || sessionInfo.role == '财务' || sessionInfo.role == '财务助理'}">
								<li><a href="<c:url value='/salesOrder/showList' />" target="navTab" rel="salesOrderList">销售单管理</a></li>
								<li><a href="<c:url value='/purchaseOrder/showList' />" target="navTab" rel="purchaseOrderList">进货单管理</a></li>
							</c:if>
							<c:if test="${sessionInfo.role == '管理员' || sessionInfo.role == '财务' || sessionInfo.role == '商务'}">
								<li><a href="<c:url value='/driver/showList' />" target="navTab" rel="driverList">司机管理</a></li>
							</c:if>
							<c:if test="${sessionInfo.role == '管理员' || sessionInfo.role == '财务' || sessionInfo.role == '业务员' || sessionInfo.role == '技术员' || sessionInfo.role == '商务'}">
								<li><a href="<c:url value='/delivery/showList' />" target="navTab" rel="deliveryList">送货管理</a></li>
							</c:if>
							<c:if test="${sessionInfo.role == '管理员' || sessionInfo.role == '财务' || sessionInfo.role == '技术员' || sessionInfo.role == '业务员'}">
								<li><a href="<c:url value='/repair/showList' />" target="navTab" rel="repairList">送修管理</a></li>
							</c:if>
							<c:if test="${sessionInfo.role == '管理员' || sessionInfo.role == '财务' || sessionInfo.role == '业务员' || sessionInfo.role == '财务助理'}">
								<li><a href="<c:url value='/salesInvoice/showList' />" target="navTab" rel="salesInvoiceList">销项发票管理</a></li>
							</c:if>
							<c:if test="${sessionInfo.role == '管理员' || sessionInfo.role == '财务' || sessionInfo.role == '财务助理'}">
								<li><a href="<c:url value='/purchaseInvoice/showList' />" target="navTab" rel="purchaseInvoiceList">进项发票管理</a></li>
							</c:if>
							<c:if test="${sessionInfo.role == '管理员' || sessionInfo.role == '业务员'}">
								<li><a href="<c:url value='/customerCall/showList' />" target="navTab" rel="customerCallList">业务员电话记录</a></li>
							</c:if>
							<c:if test="${sessionInfo.role == '管理员' || sessionInfo.role == '业务员'}">
								<li><a href="<c:url value='/customerVisit/showList' />" target="navTab" rel="customerVisitList">业务员拜访记录</a></li>
							</c:if>
						</ul>
					</div>
				</div>
			</div>
		</div>
		<div id="container">
			<div id="navTab" class="tabsPage">
				<div class="tabsPageHeader">
					<div class="tabsPageHeaderContent">
						<!-- 显示左右控制时添加 class="tabsPageHeaderMargin" -->
						<ul class="navTab-tab">
							<li tabid="main" class="main"><a href="javascript:;"><span><span class="home_icon">我的主页</span></span></a></li>
						</ul>
					</div>
					<div class="tabsLeft">left</div>
					<!-- 禁用只需要添加一个样式 class="tabsLeft tabsLeftDisabled" -->
					<div class="tabsRight">right</div>
					<!-- 禁用只需要添加一个样式 class="tabsRight tabsRightDisabled" -->
					<div class="tabsMore">more</div>
				</div>
				<ul class="tabsMoreList">
					<li><a href="javascript:;">我的主页</a></li>
				</ul>
				<div class="navTab-panel tabsPageContent layoutBox">
					<div class="page unitBox">
						<div class="accountInfo">
							<p>
								<span>订单管理系统</span>
							</p>
						</div>
						<div class="pageFormContent" layoutH="80" style="margin-right:230px"></div>

					</div>

				</div>
			</div>
		</div>

	</div>

	<div id="footer">Copyright &copy; 2014 张雷</div>

</body>
</html>